package com.example.books.Service.Impl;

import com.example.books.Dao.ClassifyDao;
import com.example.books.Pojo.ClassifyDO;
import com.example.books.Service.ClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ClassifyServiceImpl implements ClassifyService {

    @Autowired
    private ClassifyDao classifyDao;

    @Override
    public List<ClassifyDO> getClassify() {
        return classifyDao.getClassify();
    }

    @Override
    public boolean setClassify(Map<String, Object> map) {
        return classifyDao.setClassify(map);
    }

    @Override
    public boolean updateClassify(Map<String, Object> map) {
        return classifyDao.updateClassify(map);
    }

    @Override
    public boolean deleteClassify(Map<String, Object> map) {
        return classifyDao.deleteClassify(map);
    }
}
